package com.wenx.concurrent.producerconsumer;

/**
 * Created by wenx on 2019-10-18 15:22
 */
public class MainTest {

    public static void main(String[] args) {
        Table table = new Table(3);
        new MakerThread("厨师1", table, 31415).start();
        new MakerThread("厨师2", table, 92653).start();
        new MakerThread("厨师3", table, 58979).start();
        new EaterThread("顾客1", table, 32384).start();
        new EaterThread("顾客2", table, 62643).start();
        new EaterThread("顾客3", table, 38327).start();
    }
}